<div class="padding20">
	<h2 class="title">Weather</h2>
	
	<?php 
		if(LoggedIn()) 
		{
			if(CheckPort($host, 8000)) 
			{
	?>
	<script src="http://<?php echo $host; ?>:8000/socket.io/socket.io.js"></script>
	<?php 
			}
	?>
		<script type="text/javascript">
		$(document).ready(function(){
			chID = "weather";
		});
		</script>
		<script src="/js/addChatToPage.js" type="text/javascript"></script>
	<?php
		}
	?>
	
<?php 
	include "php/weather.php"; 
	$userCityName = isset($_GET["loc"]) ? $_GET["loc"] : $userCityName;
?>
<p>Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum ipsum. Proin imperdiet est. Phasellus dapibus semper urna. Pellentesque ornare, orci in felis. Donec ut ante. In id eros. Suspendisse lacus turpis, cursus egestas at sem.</p>

<div id="container">
<!--<iframe src="http://www.thesun.co.uk/sol/homepage/weather/?q=<?php echo $userCityName; ?>" scrolling="no"></iframe>-->
</div>
<form action="" method="GET">
<input type="hidden" name="p" value="weather" />
<?php $weatherInputDisplay = isset($_GET["loc"]) ? htmlentities($_GET["loc"]) : ""; ?>
<p><b>Search Weather:</b> <input type="text" name="loc" value="<?php echo $weatherInputDisplay; ?>"/><input type="submit" class="button" value="Search" /> *Zip/Post Code or Town</p>
</form>
</div>